<!-- Icon.vue -->
<template>
  <svg aria-hidden="true" :width="width" :height="height" fill="currentColor">
    <use :xlink:href="`#icon-${name}`" />
  </svg>
</template>
<script setup lang="ts">
defineProps({
  name: {
    type: String,
    required: true
  },
  width: {
    type: String,
    default: '1em'
  },
  height: {
    type: String,
    default: '1em'
  },
  color: {
    type: String,
    default: '#000'
  }
})
// defineProps<{
//   name: string,
//   width: string,
//   height: string,
//   color?: string
// }>();
</script>

<style lang="scss">
svg{
    fill: currentColor;
    vertical-align: middle;
    color:#a7acba;
    font-size: 20px;
}
</style>
